package com.rocksdata.mc.http;

import java.lang.reflect.Type;

import org.xutils.http.app.ResponseParser;
import org.xutils.http.request.UriRequest;

import com.alibaba.fastjson.JSON;

public class HttpResultParser implements ResponseParser{
	private static final String TAG = "HttpResultParser";

	@Override
	public void checkResponse(UriRequest arg0) throws Throwable {
		
	}

	@Override
	public Object parse(Type arg0, Class<?> arg1, String arg2) throws Throwable {
//		Logger.e(TAG, "【http response】" + arg2);
		return JSON.parseObject(arg2, ResponseEntity.class);
	}

}
